<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.*"%>
<%@ page import="java.util.Date"%>
<%@ page import="javax.servlet.http.HttpSession;"%>
<%@ page import="java.text.DateFormat;"%>
<%@ page import="java.sql.*"%>
<%@ page import="helper.ConnectionHelper"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/clientTemplate.css">
        <title>Client Template</title>
    </head>
    <body>
        <center>
        <table id="tableClientTemplate">
            <tr id="headerClientTemplate">
                <td><%@include file="clientHeader.jsp" %></td>
            </tr>
            <tr id="middleClientTemplate">
                <td>

                    <h2>
                        <%
                        HttpSession session1 = request.getSession();
            Date last = new Date(session1.getLastAccessedTime());
            Date now = new Date();
            DateFormat format = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.MEDIUM);

            String myname =  (String)request.getSession().getAttribute("username");
            out.println("Welcome  "+myname+"\n");
                        %></h2><h3><br><%
            out.println("Last Accessed Time  "+format.format(last));
            
            %>
                        
                    </h3><br/>

                </td>
            </tr>
            <tr id="footerClientTemplate">
                <td><%@include file="clientFooter.jsp" %></td>
            </tr>
        </table>
        </center>
    </body>
</html>
